﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;

namespace CSP.BL
{
    public static class UserHelper
    {
        public static bool Authenticate(string username, string password)
        {
            using (var dc = new CSPEntities())
            {
                return dc.Users.Count(p => p.Alias == username) == 1;
            }
        }
    }
}
